/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;

/**
 * <p>Project: javaseapp - Dir2
 * <p>Powered by webrx On 2021-08-11 09:07:50
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Dir4 {
    public static void main(String[] args) {
        File f = new File("c:/myuser");
        if (f.exists() && f.isDirectory()) {
            //遍历目录
            File[] fs = f.listFiles();
            for (File t : fs) {
                System.out.println(t.getAbsolutePath());
                System.out.println(t.isFile());
                System.out.println(t.isHidden());
                System.out.println(t.isDirectory());
                System.out.println(t.getName());
                System.out.println(t.getPath());
                System.out.println(t.getParent());
                System.out.println("-".repeat(50));
            }
        }

    }
}
